package main
import (
	"os"
	"fmt"
)

func main() {
	var names []string
	var prices []float64
	var quantities []uint

	f,_:=os.Open("products.txt")
	defer f.Close()
	for {
		var n string
		var p float64
		var q uint
		if num,err:=fmt.Fscanf(f,"\"%s\";%f;%d\n",&n,&p,&q); num>0 {
			names=append(names,n)
			prices=append(prices,p)
			quantities=append(quantities,q)
		} else if err!=nil {
			break
		}
	}

	fmt.Println("names:",names)
	fmt.Println("prices:",prices)
	fmt.Println("quantities:",quantities)
}
